/**
 * Copyright (c) 2007, Reliable Source, Inc. 
 * All Rights Reserved.
 */
package org.reliablesource.prism.ui.aspects;

import org.eclipse.swt.widgets.DirectoryDialog;
import org.eclipse.swt.widgets.FileDialog;

/**
 * DialogCaptureAspect.aj<br> 
 * Created on: Jul 6, 2007<br>
 *
 * @author Dennis Park 
 * 		<a href="mailto:dennis.park@gmail.com">dennis.park@gmail.com</a>
 *
 * @since 1.0
 *
 */
public aspect DialogCaptureAspect {

	pointcut nativeDialogOpened() : 
		call(* FileDialog.open()) && args() 
	||
		call(* DirectoryDialog.open()) && args();
	
	before(): nativeDialogOpened(){
		System.err.println("#####before opening dialog#####");
	}
	
//	around() : nativeDialogOpened(){
//		System.err.println("#####during opening dialog#####");
//	}

	after() : nativeDialogOpened(){
		System.err.println("#####after opening dialog#####");
	}
}
